<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Helper\OpenSearch\Search;
class SynchroSearch extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'synchro:search {action}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $action = $this->argument('action');
        if($action == 'art')return $this->$action();
        
        //
        $Search = new Search();
		
		
		
		// dd(1);
        var_export($Search->news());
		
        
		
		var_export($Search->artist());
        var_export($Search->zc());
        var_export($Search->pmh());
        var_export($Search->auction_art());
        
    }

    public function art()
    {
        $Search = new Search();
        var_export($Search->auction_art());

    }
}
